Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Separate extension install from pip install #24

Merged
merged 8 commits into from
Jan 21, 2016

Conversation

parente
Copy link
Member

@parente parente commented Jan 4, 2016

Follows the current best practices for installing extensions on Jupyter 4.x:

  • pip install dumps everything into the active Python path
  • A project specific script (extensionapp.py, bootstrapped from nbgrader, thanks @jhamrick), provides a CLI for:
    • installing the JS extension assets into the user defined location (--user, --symlink, --prefix, ...)
    • enabling the JS and server-side extensions
    • disabling the JS and server-side extensions
  • Server-side extensions are enabled/disabled in JSON files, not .py files

Fixes #19

@lbustelo @jtyberg If we adopt this here, we have to adopt it everywhere (dashboards, declarativewidgets), because the JSON config file takes precedence over the .py config file for the server extensions list. (Keep in mind, we're already incompatible with extensions like nbgrader, nbpresent, ... which will clobber our hack-to-.py file config)

* Borrow extensionapp.py from nbgrader to install / activate
* Start separation of pip install from ext install

(c) Copyright IBM Corp. 2016
(c) Copyright IBM Corp. 2016
(c) Copyright IBM Corp. 2016
(c) Copyright IBM Corp. 2016
(c) Copyright IBM Corp. 2016
@parente parente changed the title [wip] separate extension install from pip install Separate extension install from pip install Jan 5, 2016
Properly installs top-level scripts as exes on Windows

(c) Copyright IBM Corp. 2016
parente added a commit that referenced this pull request Jan 21, 2016
Separate extension install from pip install
@parente parente merged commit 4ba190f into jupyter-incubator:master Jan 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate install and config
1 participant